A mutable flag indicating whether the FluexGL DSP WebAssembly module has been compiled.
let hasInitializedWasm: boolean;
hasInitializedWasm is a top-level, mutable boolean binding exported from the package. It is initialized to false and set to true as soon as the WebAssembly module has been compiled successfully, which happens during DspPipeline.initializeDpsPipeline().
Because it is an ES module live binding, an imported hasInitializedWasm always reflects the current value.
Effects that run on an AudioWorklet (such as Reverb or LowPassFilter) can only be attached once this flag is true. Native effects such as Compressor and Limiter do not depend on it.
The spatial renderers use this flag to attach their default reverb automatically once WebAssembly is ready.
import { hasInitializedWasm, Reverb } from "@fluex/fluexgl-dsp";
if (hasInitializedWasm)
channel.addEffect(new Reverb({ mix: 0.3 }));
boolean - true once the WebAssembly module has been compiled, otherwise false.This value does not emit any errors or warnings.